package top.hymsk.ecommerce.pojo.status;

/**
 * @author 花于陌上开
 */
public enum OrderStatusCode {
    ORDER_NOT_EXIST(-1, "订单不存在"),
    STATUS_ERROR(-2, "订单状态错误"),
    ORDER_COMPLETED(0, "订单已完成"),
    NON_PAYMENT(1, "订单未支付"),
    HAS_PAYMENT(2, "已支付"),
    HAS_CANCEL(3, "已取消"),
    ;

    private final int statusCode;
    private final String description;

    OrderStatusCode(int statusCode, String description) {
        this.statusCode = statusCode;
        this.description = description;
    }

    public int getStatusCode() {
        return this.statusCode;
    }

    public String getDescription() {
        return this.description;
    }
}
